"""
所有窗口组件管理类
"""
from PySide6.QtUiTools import QUiLoader

from TestToolsV2.view.MainWindown import mainWindow
from TestToolsV2.view.SearchPathDialog import searchPathDialog
from TestToolsV2.view.SettingDialog import settingDialog
from TestToolsV2.view.ShowDataDialog import showDataDialog


class componentsController:
    def __init__(self):
        self.__mainUi = QUiLoader().load('../resources/Ui/main.ui')
        self.__searchPathUi = QUiLoader().load('../resources/Ui/searchPath.ui')
        self.__settingUi = QUiLoader().load('../resources/Ui/setting.ui')
        self.__showDataUi = QUiLoader().load('../resources/Ui/showdata.ui')
        self.mainWindown = mainWindow("main", self.__mainUi)
        self.searchPathDialog = searchPathDialog("searchPath", self.__searchPathUi)
        self.settingDialog = settingDialog("setting", self.__settingUi)
        self.showDataDialog = showDataDialog("showdata", self.__showDataUi)
